package org.example.Dao;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.example.user.User;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserDao {
@Select("select * from user where username=#{username}")
    User select(@Param("username") Integer username);
@Select("select * from user")
    List<User> selectall();
}
